import 'package:high_help_apps/common/entities/life_help/message_info_entity.dart';
import 'package:high_help_apps/common/entities/life_help/message_info_request_entity.dart';
import 'package:high_help_apps/common/utils/http.dart';

/// FileName: message
/// Author: admin
/// Date: 2021-09-04 11:01
/// Description: 用户互帮互助消息

class MessageAPI {
  /// 分页获取互帮互助信息
  static Future getMessageList(
      MessageInfoRequestEntity? params
      ) async {
    var response = await HttpUtil().get(
      '/message',
      queryParameters: params?.toJson()
    );
    print(response);
    return MessageInfoEntity().fromJson(response);
  }
}

